<!DOCTYPE html>
<html>
<head>
    <%if(articleList.length!=0){%>
    <title><%=articleList[0].bookcase.name %></title>
    <%}%>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">

    <% include ../../common/public.ejs %>

    <link rel="stylesheet" href="//cdn.bootcss.com/weui/1.1.1/style/weui.min.css">
    <link rel="stylesheet" href="//cdn.bootcss.com/jquery-weui/1.0.1/css/jquery-weui.min.css">
    <link href="<%= global.config.path.publicPath %>/custom/css/articleTemplate.css" rel="stylesheet">
</head>
<body>
<link rel="stylesheet" href="//cdn.bootcss.com/weui/1.1.1/style/weui.min.css">
<link rel="stylesheet" href="//cdn.bootcss.com/jquery-weui/1.0.1/css/jquery-weui.min.css">
<div>
    <%if(articleList.length!=0){%>
    <div class="out-container">
        <div class="news-container">
            <% for(let i = 0;i < articleList.length;i++){ %>
            <div class="news-list">
                <a href="<%= articleList[i].thirdUrl|| global.config.path.contextPath+'/fengqi/article/articleView/'+articleList[i].code %>">
                    <div class="news-panel weui-flex">
                        <div class=" news-img">
                            <%if(articleList[i].img){%>
                            <img src="<%= global.config.path.publicPath %>/uploadFiles<%= articleList[i].img.filePath %>" alt="">
                            <%}%>
                        </div>
                        <div class="news-title ">
                            <p class="title-font"><%= articleList[i].name %></p>
                            <span class="title-time">
                                <%  let time
                                    if(articleList[i].effectiveTime){
                                    time = global.tool.dateFormatter(articleList[i].effectiveTime, 'yyyy-MM-dd')
                                }else{
                                        time = ''
                                    } %>
                                <%= time  %>
                            </span>
                        </div>
                    </div>
                </a>
            </div>
            <% } %>
        </div>
    </div>
    <%}else{%>
    <img src="<%=global.config.path.publicPath%>/custom/images/icon/nomore.png" alt="" class="noMore">
    <h2 class="text-center">暂无更多内容啦</h2>
    <%}%>
</div>

<script src="//cdn.bootcss.com/jquery/1.11.0/jquery.min.js"></script>
<script src="//cdn.bootcss.com/jquery-weui/1.0.1/js/jquery-weui.min.js"></script>
<script src="//cdn.bootcss.com/jquery-weui/1.0.1/js/swiper.min.js"></script>
<script src="<%= global.config.path.publicPath %>/custom/js/articleTemplate.js"></script>

</body>
</html>
